<UserControl x:Class="QUT.Bio.SilverMap.HorizontalLayout"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:silvermap="clr-namespace:QUT.Bio.SilverMap"
			 xmlns:util="clr-namespace:QUT.Bio.Util"
			 MinHeight="300"
			 MinWidth="450"
			 Background="White">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="20" />
			<RowDefinition Height="*" />
			<RowDefinition Height="auto" />
		</Grid.RowDefinitions>

		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="3" />
			<ColumnDefinition Width="20*" />
			<ColumnDefinition Width="3" />
			<ColumnDefinition Width="50*" />
			<ColumnDefinition Width="3" />
			<ColumnDefinition Width="50*" />
			<ColumnDefinition Width="3" />
		</Grid.ColumnDefinitions>

		<TextBlock Grid.Row="0"
				   VerticalAlignment="Center"
				   FontSize="12"
				   Text="Alignment"
				   Grid.Column="1" />

		<Grid Grid.Row="0"
			  Grid.Column="3">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="auto" />
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>

			<TextBlock Text="Query"
					   FontSize="12"
					   VerticalAlignment="Center"
					   Width="35"
					   Grid.Column="0"
					   HorizontalAlignment="Left" />

			<silvermap:HistoryPanel x:Name="historyPanel"
								 Grid.Column="1"
								 Margin="5 0 0 0"
								 VerticalAlignment="Center" />
		</Grid>

		<TextBlock Name="sequenceSummaryLiteral"
				   Grid.Row="0"
				   VerticalAlignment="Center"
				   FontSize="12"
				   Text="Summary"
				   Grid.Column="5" />

		<TextBlock Name="sequencePropertyLiteral"
				   Grid.Row="0"
				   VerticalAlignment="Center"
				   FontSize="12"
				   Text="Hit Details"
				   Visibility="Collapsed"
				   Grid.Column="5" />

		<TextBlock Name="geneDetailsLiteral"
				   Grid.Row="0"
				   VerticalAlignment="Center"
				   FontSize="12"
				   Text="Gene Details"
				   Visibility="Collapsed"
				   Grid.Column="5" />

		<Border Margin="0 0 0 0"
				BorderBrush="Gray"
				BorderThickness="0"
				Grid.Row="1"
				Grid.Column="1">

			<silvermap:HitStack x:Name="alignment"
							 Grid.Row="1"
							 HorizontalAlignment="Stretch"
							 VerticalAlignment="Stretch" />
		</Border>

		<Border Grid.Column="3"
				Grid.Row="1"
				Margin="0 0 0 0">

			<Grid VerticalAlignment="Stretch">
				<Grid.RowDefinitions>
					<RowDefinition Height="auto" />
					<RowDefinition Height="*" />
				</Grid.RowDefinitions>

				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="auto" />
					<ColumnDefinition Width="*" />
				</Grid.ColumnDefinitions>

				<TextBlock Text="Search"
						   VerticalAlignment="Center"
						   Width="35" HorizontalAlignment="Left" Margin="0,4" />

				<silvermap:SearchControl x:Name="searchControl"
									  Grid.Column="1"
									  Margin="5,0,0,0" />

				<silvermap:View x:Name="view"
							 Grid.Row="1"
							 Grid.ColumnSpan="2" />
			</Grid>
		</Border>

		<util:TabControl Grid.Column="5"
						   Grid.Row="1"
						   TabStripPlacement="Bottom"
						   Background="White"
						   x:Name="infoContainer"
						   BorderThickness="1"
						   SelectionChanged="infoContainer_SelectionChanged">

			<util:TabItem Header="Summary"
							x:Name="sequenceSummaryContainer"
							Background="White"
							FontSize="12">

				<silvermap:SequenceSummaryTable x:Name="sequenceSummaryTable"
											 VerticalAlignment="Stretch" />
			</util:TabItem>

			<util:TabItem Header="Hit details"
							Background="White"
							FontSize="12"
							x:Name="sequencePropertyContainer">
				<silvermap:SequencePropertyPanel x:Name="sequencePropertyPanel" />
			</util:TabItem>

			<util:TabItem Header="Gene details"
							Background="White"
							x:Name="geneDetailsContainer"
							Visibility="Collapsed"
							FontSize="12">
				<Grid Name="geneDetailsPanel" />
			</util:TabItem>

		</util:TabControl>
	</Grid>
</UserControl>
